﻿<div class="well">
    <div>
        <label for="search">Search Text</label>
        <input type="text" id="search" ng-model="searchText" /><br />
        <input type="button" ng-click="search()" value="Search" />
    </div>
    <div>
        <table class="table table-striped table-bordered">
            <tr>
                <th>Make</th>
                <th>Model</th>
                <th>Year</th>
            </tr>
            <tr ng-repeat="c in currentCarList">
                <td>{{c.make}}</td>
                <td>{{c.model}}</td>
                <td>{{c.year}}</td>
            </tr>
        </table>
    </div>
    <div>
        <ul class="pagination">
            <li ng-repeat="p in totalPages">
                <a ng-click="getNextResults(p.pageNum)">{{p.pageNum}}</a>
            </li>
        </ul>
    </div>
</div>